import 'package:flutter/material.dart';

class O2IconFont {
  // iconName: setup 设置
  static const settings = IconData(
    0xe90a,
    fontFamily: 'o2IconFont',
    matchTextDirection: true,
  );

  // iconName: addressList 通讯录
  static const addressList = IconData(
    0xe909,
    fontFamily: 'o2IconFont',
    matchTextDirection: true,
  );
  // iconName: news 消息
  static const message = IconData(
    0xe900,
    fontFamily: 'o2IconFont',
    matchTextDirection: true,
  );
  // iconName: apps 应用
  static const apps = IconData(
    0xe90b,
    fontFamily: 'o2IconFont',
    matchTextDirection: true,
  );

  // iconName: search 搜索
  static const search = IconData(
    0xe923,
    fontFamily: 'o2IconFont',
    matchTextDirection: true,
  );

  // iconName: alert 提示
  static const alert = IconData(
    0xe912,
    fontFamily: 'o2IconFont',
    matchTextDirection: true,
  );

  // iconName: alert ok 提示
  static const ok = IconData(
    0xe918,
    fontFamily: 'o2IconFont',
    matchTextDirection: true,
  );

  /// ooicon font字符图标
  static IconData ooiconFont(String classname) {
    final value = ooiconFontMap[classname];
    if (value == null) {
      return Icons.error_outline; // 返回一个表示错误的默认图标
    }
    final codePoint = int.tryParse(value, radix: 16);
    if (codePoint == null) {
      return Icons.error_outline;
    }
    return IconData(
      codePoint,
      fontFamily: 'ooicon',
      matchTextDirection: true,
    );
  }

  static final ooiconFontMap = {
    "ooicon-liucheng": "e778",
    "ooicon-question": "e777",
    "ooicon-pentagram_2": "e776",
    "ooicon-batch_Import": "e774",
    "ooicon-Import1": "e775",
    "ooicon-btn": "e769",
    "ooicon-combo_box": "e76a",
    "ooicon-text_field": "e76b",
    "ooicon-operation_bar2": "e76c",
    "ooicon-numeric_field": "e76d",
    "ooicon-operation_bar1": "e76e",
    "ooicon-opinion_box": "e76f",
    "ooicon-text2": "e770",
    "ooicon-gouxuan": "e771",
    "ooicon-multiline": "e772",
    "ooicon-format_painter": "e773",
    "ooicon-calendar_abnormal": "e768",
    "ooicon-pdf2": "e761",
    "ooicon-ofd2": "e762",
    "ooicon-word": "e763",
    "ooicon-ppt": "e764",
    "ooicon-pdf": "e765",
    "ooicon-ofd": "e766",
    "ooicon-excel": "e767",
    "ooicon-renwu": "e760",
    "ooicon-zaotui": "e759",
    "ooicon-waiqin": "e75a",
    "ooicon-a-calendarbeifen4": "e75b",
    "ooicon-kuanggong": "e75c",
    "ooicon-qingjia": "e75d",
    "ooicon-chidao": "e75e",
    "ooicon-working_hours": "e75f",
    "ooicon-canyue": "e758",
    "ooicon-stop1": "e757",
    "ooicon-person2": "e756",
    "ooicon-more_3": "e754",
    "ooicon-m1": "e755",
    "ooicon-a-newtalk": "e752",
    "ooicon-networking_click": "e753",
    "ooicon-lifa": "e74f",
    "ooicon-haocai": "e750",
    "ooicon-xiyi": "e751",
    "ooicon-zhibiao": "e74e",
    "ooicon-not_great": "e74c",
    "ooicon-like": "e74d",
    "ooicon-database": "e749",
    "ooicon-process-cancel21": "e74b",
    "ooicon-process-cancel2": "e74a",
    "ooicon-error1": "e748",
    "ooicon-logo": "e747",
    "ooicon-phone1": "e744",
    "ooicon-send1": "e745",
    "ooicon-icon_gongsinews": "e746",
    "ooicon-daiban": "e742",
    "ooicon-yiban": "e73f",
    "ooicon-caogao": "e740",
    "ooicon-daiyue": "e741",
    "ooicon-ijian": "e743",
    "ooicon-files": "e73e",
    "ooicon-upload": "e73d",
    "ooicon-gprs": "e73b",
    "ooicon-lashen": "e73c",
    "ooicon-kaiqi": "e738",
    "ooicon-jia1": "e739",
    "ooicon-icon_weikaiqi": "e73a",
    "ooicon-stop": "e737",
    "ooicon-jian": "e735",
    "ooicon-jia": "e736",
    "ooicon-shuzipaixu": "e72c",
    "ooicon-zhankai": "e72d",
    "ooicon-arrow_right": "e72e",
    "ooicon-jiadian": "e72f",
    "ooicon-zhedie": "e730",
    "ooicon-fujian": "e731",
    "ooicon-arrow_left": "e732",
    "ooicon-quanping": "e733",
    "ooicon-news1": "e734",
    "ooicon-right": "e72b",
    "ooicon-down": "e729",
    "ooicon-up": "e72a",
    "ooicon-message": "e668",
    "ooicon-collapse": "e728",
    "ooicon-execution": "e649",
    "ooicon-process-goback": "e726",
    "ooicon-process-submit": "e727",
    "ooicon-delete": "e6c0",
    "ooicon-process-monitor": "e6c4",
    "ooicon-edit": "e6cf",
    "ooicon-retract": "e6d2",
    "ooicon-process-downloadall": "e6d3",
    "ooicon-process-end": "e6d4",
    "ooicon-checkmark": "e6d6",
    "ooicon-process-add-task": "e6de",
    "ooicon-process-split2": "e6df",
    "ooicon-redo": "e6e0",
    "ooicon-print": "e6e5",
    "ooicon-process-read": "e722",
    "ooicon-save": "e723",
    "ooicon-process-rollback": "e724",
    "ooicon-publish": "e725",
    "ooicon-process-flow": "e68f",
    "ooicon-process-message": "e691",
    "ooicon-control-panel": "e692",
    "ooicon-close": "e69c",
    "ooicon-process-begin": "e6a9",
    "ooicon-reset": "e6af",
    "ooicon-log-viewer": "e71f",
    "ooicon-icon_caiwushenpi": "e720",
    "ooicon-data-center": "e721",
    "ooicon-design": "e70a",
    "ooicon-a-flowprocess": "e714",
    "ooicon-a-treeorg": "e715",
    "ooicon-person_file": "e716",
    "ooicon-procurement": "e717",
    "ooicon-travel": "e718",
    "ooicon-systemconfig": "e719",
    "ooicon-workcenter": "e71a",
    "ooicon-party": "e71b",
    "ooicon-role": "e71c",
    "ooicon-cms-maintain": "e71d",
    "ooicon-computer": "e71e",
    "ooicon-doc-cooperation": "e6f4",
    "ooicon-process-maintain": "e6f5",
    "ooicon-app-build": "e6f6",
    "ooicon-office-supplies": "e6f7",
    "ooicon-work-report": "e6f8",
    "ooicon-veriface": "e6f9",
    "ooicon-leave": "e6fa",
    "ooicon-information": "e6fb",
    "ooicon-netraffic": "e6fc",
    "ooicon-score": "e6fd",
    "ooicon-shijianchangjingku": "e6fe",
    "ooicon-ternary-management": "e6ff",
    "ooicon-logistics": "e6e7",
    "ooicon-weekly": "e6e8",
    "ooicon-neibudaohang": "e6e9",
    "ooicon-file-gateway": "e6ea",
    "ooicon-work-overtime": "e6eb",
    "ooicon-employment": "e6ec",
    "ooicon-xinxifabu": "e6ed",
    "ooicon-reports": "e6ee",
    "ooicon-shichangguanli": "e6ef",
    "ooicon-process-service": "e6f0",
    "ooicon-xingzhengshiwu": "e6f1",
    "ooicon-work-plan": "e6f2",
    "ooicon-appstore": "e6f3",
    "ooicon-icon_zhanlue": "e6e6",
    "ooicon-jiekuanshenqing": "e6d7",
    "ooicon-customer": "e6d8",
    "ooicon-description": "e6d9",
    "ooicon-meeting": "e6da",
    "ooicon-onduty": "e6db",
    "ooicon-xiangmuxiezuo": "e6dc",
    "ooicon-qianfangguanli": "e6dd",
    "ooicon-kucunguanli": "e6e2",
    "ooicon-zhaobiaoshenqing": "e6e3",
    "ooicon-toubiaoshenqing": "e6e4",
    "ooicon-duty": "e6ca",
    "ooicon-person_manage": "e6cb",
    "ooicon-message2": "e6cc",
    "ooicon-zhichuzhengming": "e6cd",
    "ooicon-contract": "e6ce",
    "ooicon-kaijufapiao": "e6d0",
    "ooicon-ai": "e6d1",
    "ooicon-config": "e6d5",
    "ooicon-taizhang": "e6bd",
    "ooicon-payment": "e6be",
    "ooicon-employee-file": "e6bf",
    "ooicon-hot-article": "e6c1",
    "ooicon-supplier": "e6c2",
    "ooicon-pentagram": "e6c3",
    "ooicon-cloud-note": "e6c5",
    "ooicon-zhaopin": "e6c6",
    "ooicon-finance": "e6c7",
    "ooicon-pms": "e6c8",
    "ooicon-xinxicaibian": "e6c9",
    "ooicon-jiezhibeiyongjin_sq": "e6b0",
    "ooicon-chat": "e6b1",
    "ooicon-schedule": "e6b2",
    "ooicon-news": "e6b3",
    "ooicon-jixiaokaohe": "e6b4",
    "ooicon-bulletin": "e6b5",
    "ooicon-asset": "e6b6",
    "ooicon-shouwen": "e6b7",
    "ooicon-a-home2": "e6b8",
    "ooicon-a-attendanceprocess-invoke": "e6b9",
    "ooicon-qinggoushenqing": "e6ba",
    "ooicon-work-overtime-record": "e6bb",
    "ooicon-training": "e6bc",
    "ooicon-profile": "e6a1",
    "ooicon-zhaodaifeiyong_sq": "e6a2",
    "ooicon-reimbursement": "e6a3",
    "ooicon-minder": "e6a4",
    "ooicon-cost": "e6a5",
    "ooicon-vehicle": "e6a6",
    "ooicon-notes": "e6a7",
    "ooicon-create": "e6a8",
    "ooicon-shixiangshenpi": "e6aa",
    "ooicon-personnel": "e6ab",
    "ooicon-shigongshenqing": "e6ac",
    "ooicon-myjob": "e6ad",
    "ooicon-home": "e6ae",
    "ooicon-mail": "e695",
    "ooicon-contacts": "e696",
    "ooicon-document": "e697",
    "ooicon-work-management": "e698",
    "ooicon-yixiaopin": "e699",
    "ooicon-xiezuo": "e69a",
    "ooicon-forum": "e69b",
    "ooicon-activities": "e69d",
    "ooicon-lingdaoxinxiang": "e69e",
    "ooicon-xiansuo": "e69f",
    "ooicon-knowledge": "e6a0",
    "ooicon-work-management2": "e68c",
    "ooicon-gongzjitiao1": "e68d",
    "ooicon-zongheguanli": "e68e",
    "ooicon-seal": "e690",
    "ooicon-platform": "e693",
    "ooicon-fangkeguanli": "e694",
    "ooicon-pentagram_fill": "e688",
    "ooicon-version_add": "e689",
    "ooicon-menu": "e68a",
    "ooicon-icon_ok_round": "e68b",
    "ooicon-Import": "e678",
    "ooicon-audit": "e679",
    "ooicon-department": "e67a",
    "ooicon-tanhao": "e67b",
    "ooicon-help": "e67c",
    "ooicon-switch": "e67d",
    "ooicon-radio-unchecked": "e67e",
    "ooicon-empty": "e67f",
    "ooicon-update": "e680",
    "ooicon-review": "e681",
    "ooicon-password": "e682",
    "ooicon-skin": "e683",
    "ooicon-sub_depart_stat": "e684",
    "ooicon-guard": "e685",
    "ooicon-note": "e686",
    "ooicon-list-alt": "e687",
    "ooicon-srcipt": "e669",
    "ooicon-desktop_mac": "e66a",
    "ooicon-text": "e66b",
    "ooicon-default": "e66c",
    "ooicon-business_trip": "e66d",
    "ooicon-error": "e66e",
    "ooicon-person_lock": "e66f",
    "ooicon-identity": "e670",
    "ooicon-strategy": "e671",
    "ooicon-forward": "e672",
    "ooicon-net-meeting": "e673",
    "ooicon-window-max": "e674",
    "ooicon-version": "e675",
    "ooicon-file-text": "e676",
    "ooicon-share": "e677",
    "ooicon-storage": "e657",
    "ooicon-process-embed": "e658",
    "ooicon-party_portal": "e659",
    "ooicon-window-return": "e65a",
    "ooicon-zoom_out": "e65b",
    "ooicon-personnel_export": "e65c",
    "ooicon-pad": "e65d",
    "ooicon-full-text-search": "e65e",
    "ooicon-unit-post": "e65f",
    "ooicon-table-tool": "e660",
    "ooicon-tree": "e661",
    "ooicon-file_upload": "e662",
    "ooicon-portal": "e663",
    "ooicon-radio-checked": "e664",
    "ooicon-wps": "e665",
    "ooicon-folder-open": "e666",
    "ooicon-process-add-task-person": "e667",
    "ooicon-process-cancel": "e647",
    "ooicon-file_download": "e648",
    "ooicon-rename": "e64a",
    "ooicon-person_import": "e64b",
    "ooicon-arrow_forward": "e64c",
    "ooicon-point3": "e64d",
    "ooicon-process-parallel": "e64e",
    "ooicon-help_outline": "e64f",
    "ooicon-verified": "e650",
    "ooicon-arrow_back": "e651",
    "ooicon-onlyoffice": "e652",
    "ooicon-sub_depart": "e653",
    "ooicon-block": "e654",
    "ooicon-drop_down": "e655",
    "ooicon-a-window-return2": "e656",
    "ooicon-documents": "e637",
    "ooicon-drive": "e638",
    "ooicon-checkbox-checked": "e639",
    "ooicon-clock": "e63a",
    "ooicon-farword": "e63b",
    "ooicon-process-delay": "e63c",
    "ooicon-meeting-room": "e63d",
    "ooicon-process-merge": "e63e",
    "ooicon-phone": "e63f",
    "ooicon-group": "e640",
    "ooicon-sorting": "e641",
    "ooicon-unit": "e642",
    "ooicon-crm": "e643",
    "ooicon-search": "e644",
    "ooicon-qr": "e645",
    "ooicon-expand": "e646",
    "ooicon-person": "e627",
    "ooicon-details": "e628",
    "ooicon-puzzle": "e629",
    "ooicon-dynamic": "e62a",
    "ooicon-process-split": "e62b",
    "ooicon-export": "e62c",
    "ooicon-process-agent": "e62d",
    "ooicon-person_disable": "e62e",
    "ooicon-alphabet": "e62f",
    "ooicon-check_outline": "e630",
    "ooicon-checkbox-unchecked": "e631",
    "ooicon-category": "e632",
    "ooicon-reload": "e633",
    "ooicon-maintain": "e634",
    "ooicon-find": "e635",
    "ooicon-remove_outline": "e636",
    "ooicon-integral": "e61f",
    "ooicon-app-center": "e620",
    "ooicon-process-choice": "e621",
    "ooicon-dimission": "e622",
    "ooicon-calendar": "e623",
    "ooicon-lock": "e624",
    "ooicon-eye": "e625",
    "ooicon-zoom_in": "e626",
    "ooicon-icon_boy": "e613",
    "ooicon-animals": "e60c",
    "ooicon-picture": "e614",
    "ooicon-icon_arrow_up": "e615",
    "ooicon-icon_more": "e616",
    "ooicon-file": "e617",
    "ooicon-emoji-travel": "e618",
    "ooicon-emote": "e619",
    "ooicon-emoji-activities": "e61a",
    "ooicon-emoji-clothes": "e61b",
    "ooicon-emoji-food": "e61c",
    "ooicon-camera": "e61d",
    "ooicon-add-circle": "e61e",
    "ooicon-scan": "e60d",
    "ooicon-send": "e60e",
    "ooicon-voice": "e60f",
    "ooicon-emoji-prompt": "e610",
    "ooicon-icon_girl": "e611",
    "ooicon-keyboard": "e612",
    "ooicon-person_clock": "e709",
    "ooicon-gongwentaizhang": "e6e1",
    "ooicon-gongzuolianxidan": "e70c",
    "ooicon-guizhangzhidu": "e70d",
    "ooicon-home_zd": "e70e",
    "ooicon-information1": "e70f",
    "ooicon-hetongshenpi": "e710",
    "ooicon-hetongbiangeng": "e711",
    "ooicon-hangyexinwen": "e712",
    "ooicon-gongzjitiao": "e713",
    "ooicon-gongwen": "e70b",
    "ooicon-caigoushenqing": "e702",
    "ooicon-dingbiaobaogao": "e703",
    "ooicon-duchaduban": "e704",
    "ooicon-dingcan": "e705",
    "ooicon-fawen": "e706",
    "ooicon-baojiashenqing": "e707",
    "ooicon-fapiaoguanli": "e708",
    "ooicon-gonghai": "e700",
    "ooicon-anliku": "e701",
  };
}
